'''from PIL import Image, ImageDraw

img = Image.new(mode='RGB', size=(120, 30), color=(255, 255, 255))
draw = ImageDraw.Draw(img, mode='RGB')

draw.text([0, 0], 'llq', "red")

with open('code.png', 'wb') as f:
    img.save(f, format='png')'''
from pypinyin import pinyin, Style

def chinese_to_pinyin(chinese_text):
    # 获取拼音列表，每个字对应一个拼音
    pinyin_list = pinyin(chinese_text, style=Style.NORMAL)
    # 将拼音列表拼接成字符串
    pinyin_str = ''.join([item[0] for item in pinyin_list])
    return pinyin_str

# 示例
project_name = "禅道"
pinyin_name = chinese_to_pinyin(project_name)
print(pinyin_name)